import SpineFactory from "./anim/SpineFactory";
import BadgeManage from "./badge/BadgeManage";
import LocalDb from "./db/LocalDb";
import EventManage from "./event/EventManage";
import UIManage from "./gui/UIManage";
import SoundManage from "./sound/SoundManage";
import TimeManage from "./time/TimerManage";

//全局入口
export class game {

    static get ui() {
        return UIManage.Instance();
    }

    static get time() {
        return TimeManage.Instance()
    }

    static get ES() {
        return EventManage.I;
    }

    static get sound() {
        return SoundManage.Instance();
    }

    static get badge() {
        return BadgeManage.Instance();
    }

    static get localDb() {
        return LocalDb.Instance();
    }

    static get sk() {
        return SpineFactory.Instance();
    }

    static get uid() {
        return 1234;
    }

    static addChild<T extends Laya.Sprite>(sp: T) {
        Laya.stage.addChild(sp);

    }

}